package com.woniuxy.processclient.client;


import com.woniuxy.core.model.Result;
import com.woniuxy.processclient.client.dto.AloneCourseProductDto;
import com.woniuxy.processclient.client.dto.TeamProductDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("product-server")
public interface ProductFeignClient {
    @GetMapping("/product/aloneCourse/findById")
    public Result<AloneCourseProductDto> findAloneCourseProductById(@RequestParam("coachProductId") Integer coachProductId);


    @GetMapping("/product/teamProduct/findById")
    public Result<TeamProductDto> findTeamProductById(@RequestParam("teamProductId") Integer teamProductId);
}
